package smartcrud.spring.models.rbac;

import java.util.List;

import smartcrud.common.orm.Page;
import smartcrud.common.orm.PropertyFilter;


public interface RoleDao {
	public Role createRole(Role rbacRole);
	
	public void assignRoleWithMenus(Role role);

	public void deleteRole(Long id);

	public void updateRole(Role rbacRole);

	public Role findRoleById(Long id);

	public List<Role> findAllRoles();

	public int count(Page<Role> page,final List<PropertyFilter> filters);
	
	public Page<Role> findByPage(Page<Role> page, List<PropertyFilter> filters);
	
	//put your code here
	public List<Role> findUserRoles(Long userId);
}
